
var EEffect=new Class({

	preset:null,
	delay:0,
	name:null,
	duration:0,
	injectable:false,
	
	initialize:function(){
		
	},
	setName:function(name){
		if(name)
		this.name=name;
		else
		return false;
	},
	
	getDuration:function(){
		if(this.preset!=null){
			return this.preset.getDuration();
		}
		else return 0;
	},
		
	getName:function(){
		
		return this.name;
	},
	setDelay:function(del){
		if(del==0 ||del)
		this.delay=del;
		else
		return false;
	},
	getDelay:function(){
		
		return this.delay;
		
	},
	setPreset:function(pres){
		if(pres)
		this.preset=pres;
		else
		return false;
	},
	getPreset:function(){
		return this.preset;
	},
	getEffectCode:function(){
		return '/* Effetto:'+this.getName()+'*/'+this.getPreset().getCode()+' ';
	},
		
	isInjectable:function(){
		
		return this.injectable;
	}
});